﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace UIModel.Mongo
{
    /// <summary>
    /// 企业消费小票记录表
    /// </summary>
    public partial class SaleMongo
    {
        /// <summary>
        /// 主键ID(mongo专用)
        /// </summary>
        public ObjectId _id { get; set; }
        /// <summary>
		/// 帐编号
		/// </summary>
		[Description("帐编号")]
        public string ActID { get; set; }

        /// <summary>
        /// 企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

        /// <summary>
        /// 机构编号
        /// </summary>
        [Description("机构编号")]
        public string OrgID { get; set; }

        /// <summary>
        /// 会员编号
        /// </summary>
        [Description("会员编号")]
        public string VipID { get; set; }
        /// <summary>
        /// 卡面号
        /// </summary>
        [Description("卡面号")]
        public string CrdNo { get; set; }
        /// <summary>
        /// pos机号
        /// </summary>
        [Description("pos机号")]
        public string posid { get; set; }
        /// <summary>
        /// 收银机号
        /// </summary>
        [Description("收银机号")]
        public string receid { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        [Description("单据号")]
        public string SrcBllNo { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        [Description("单据类型")]
        public string BllTypeID { get; set; }

        /// <summary>
        /// 消费日期
        /// </summary>
        [Description("消费日期")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime SalDt { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        [Description("消费时间")]
        public string SalTm { get; set; }

        /// <summary>
        /// 品种数量
        /// </summary>
        [Description("品种数量")]
        public Int64 Qty { get; set; }

        /// <summary>
        /// 小票消费金额
        /// </summary>
        [Description("小票消费金额")]
        public Int64 ConsAmt { get; set; }

        /// <summary>
        /// 小票消费折扣
        /// </summary>
        [Description("小票消费折扣")]
        public Int64 DiscAmt { get; set; }

        /// <summary>
        /// 小票商品成本价
        /// </summary>
        [Description("小票商品成本价")]
        public Int64 CstPrc { get; set; }

        /// <summary>
        /// 小票毛利
        /// </summary>
        [Description("小票毛利")]
        public Int64 MPro { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [Description("积分")]
        public Int64 IntgAmt { get; set; }

        /// <summary>
        /// 商户
        /// </summary>
        [Description("商户")]
        public string PrvID { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Description("更新时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime UptDtt { get; set; }
    }
}
